package com.riant.dayo2.demo5;

import java.lang.annotation.ElementType;
import java.util.Random;

/**
 * @Classname Test1
 * @Description TODO
 * @Date 2021/2/27 23:09
 * @Created by 张斌
 */
public class Test1 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls1=int.class;
        Class cls2= Random.class;
        Class cls3=Double[].class;
        Class cls4=Double[][].class;
        Class cls5=Class.forName("java.lang.SuppressWarnings");
        Class cls6=ElementType.class;
        Class cls7=Comparable.class;
        Class cls8=Void.class;
        System.out.println(cls1);//int
        System.out.println(cls2);//class java.util.Random
        System.out.println(cls3);//class [Ljava.lang.Double;
        System.out.println(cls4.getName());//class [[Ljava.lang.Double;
        System.out.println(cls5);//interface java.lang.SuppressWarnings
        System.out.println(cls6);//class java.lang.annotation.ElementType
        System.out.println(cls7);//interface java.lang.Comparable
        System.out.println(cls8);//class java.lang.Void
    }
}
